

namespace WordBibliographyAddin
{
    using System;
    using ComponentFactory.Krypton.Toolkit;

    public partial class XSLEditorForm : KryptonForm
    {
        private string fileName;

        public XSLEditorForm()
        {
            InitializeComponent();
            Text = Utils.TranslateText(Text);
        }

        public XSLEditorForm(string fileToLoad)
            : this()
        {
            fileName = fileToLoad;
        }

        private void XSLEditorForm_Load(object sender, EventArgs e)
        {
            txtEditor.LoadFile(fileName);
            btnSave.Text = Utils.TranslateText("Save");
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            txtEditor.SaveFile(fileName);
        }

    }
}